.class Llt/noframe/gpsfarmguide/views/NotificationDetailsActivity$2;
.super Ljava/lang/Object;
.source "NotificationDetailsActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/views/NotificationDetailsActivity;->onStart()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Llt/noframe/gpsfarmguide/views/NotificationDetailsActivity;

.field final synthetic val$_notificationModel:Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/views/NotificationDetailsActivity;Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;)V
    .locals 0

    .line 236
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/NotificationDetailsActivity$2;->this$0:Llt/noframe/gpsfarmguide/views/NotificationDetailsActivity;

    iput-object p2, p0, Llt/noframe/gpsfarmguide/views/NotificationDetailsActivity$2;->val$_notificationModel:Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3

    .line 243
    :try_start_0
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/NotificationDetailsActivity$2;->this$0:Llt/noframe/gpsfarmguide/views/NotificationDetailsActivity;

    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    iget-object v2, p0, Llt/noframe/gpsfarmguide/views/NotificationDetailsActivity$2;->val$_notificationModel:Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;

    invoke-virtual {v2}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getURL()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {p1, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 245
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    .line 246
    sget-object v0, Llt/noframe/gpsfarmguide/views/NotificationDetailsActivity;->TAG:Ljava/lang/String;

    const-string v1, "Failed to create or start the primary action Intent for this notification..."

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 247
    invoke-static {v1}, Lcom/crashlytics/android/Crashlytics;->log(Ljava/lang/String;)V

    .line 248
    invoke-static {p1}, Lcom/crashlytics/android/Crashlytics;->logException(Ljava/lang/Throwable;)V

    .line 250
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/NotificationDetailsActivity$2;->this$0:Llt/noframe/gpsfarmguide/views/NotificationDetailsActivity;

    const v0, 0x7f110037

    const/4 v1, 0x1

    invoke-static {p1, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    :goto_0
    return-void
.end method
